package com.rc.saas.tenant.model.acct;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rc.saas.tenant.base.BaseModel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class AcctBank extends BaseModel {

    //银行名称(回显字段)
    private String acctBankName;

    private Long acctBankId;

    private String tenantCode;

    private String tenantOperatorCode;

    private String accountType;

    private String withdrawType;

    private String acctBankCode;

    private String acctBank;

    private String acctBankAccount;

    private String accountName;

    private String alipayUserId;

    private String alipayUserName;

    private String isDefault;

    private String createdBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    private String lastUpdatedBy;

    private Date lastUpdatedTime;

    public String getAcctBankName() {
        if ("1002".equals(acctBankCode)) {
            return "工商银行";
        } else if ("4025".equals(acctBankCode)) {
            return "广州农村商业银行";
        } else if ("4026".equals(acctBankCode)) {
            return "佛山农商银行";
        } else if ("4027".equals(acctBankCode)) {
            return "东莞农村商业银行";
        } else if ("4028".equals(acctBankCode)) {
            return "九江银行股份有限公司";
        } else if ("1005".equals(acctBankCode)) {
            return "农业银行";
        } else if ("1003".equals(acctBankCode)) {
            return "建设银行";
        } else if ("1026".equals(acctBankCode)) {
            return "中国银行";
        } else if ("1020".equals(acctBankCode)) {
            return "交通银行";
        } else if ("1001".equals(acctBankCode)) {
            return "招商银行";
        } else if ("1066".equals(acctBankCode)) {
            return "邮储银行";
        } else if ("1006".equals(acctBankCode)) {
            return "民生银行";
        } else if ("1010".equals(acctBankCode)) {
            return "平安银行";
        } else if ("1021".equals(acctBankCode)) {
            return "中信银行";
        } else if ("1004".equals(acctBankCode)) {
            return "浦发银行";
        } else if ("1009".equals(acctBankCode)) {
            return "兴业银行";
        } else if ("1022".equals(acctBankCode)) {
            return "光大银行";
        } else if ("1027".equals(acctBankCode)) {
            return "广发银行";
        } else if ("1025".equals(acctBankCode)) {
            return "华夏银行";
        } else if ("1056".equals(acctBankCode)) {
            return "宁波银行";
        } else if ("4836".equals(acctBankCode)) {
            return "北京银行";
        } else if ("1024".equals(acctBankCode)) {
            return "上海银行";
        } else if ("1054".equals(acctBankCode)) {
            return "南京银行";
        } else if ("4755".equals(acctBankCode)) {
            return "长子县融汇村镇银行";
        } else if ("4216".equals(acctBankCode)) {
            return "长沙银行";
        } else if ("4051".equals(acctBankCode)) {
            return "浙江泰隆商业银行";
        } else if ("4753".equals(acctBankCode)) {
            return "中原银行";
        } else if ("4761".equals(acctBankCode)) {
            return "企业银行（中国）";
        } else if ("4036".equals(acctBankCode)) {
            return "顺德农商银行";
        } else if ("4752".equals(acctBankCode)) {
            return "衡水银行";
        } else if ("4756".equals(acctBankCode)) {
            return "长治银行";
        } else if ("4767".equals(acctBankCode)) {
            return "大同银行";
        } else if ("4115".equals(acctBankCode)) {
            return "河南省农村信用社";
        } else if ("4150".equals(acctBankCode)) {
            return "宁夏黄河农村商业银行";
        } else if ("4156".equals(acctBankCode)) {
            return "山西省农村信用社";
        } else if ("4166".equals(acctBankCode)) {
            return "安徽省农村信用社";
        } else if ("4157".equals(acctBankCode)) {
            return "甘肃省农村信用社";
        } else if ("4153".equals(acctBankCode)) {
            return "天津农村商业银行";
        } else if ("4113".equals(acctBankCode)) {
            return "广西壮族自治区农村信用社";
        } else if ("4108".equals(acctBankCode)) {
            return "陕西省农村信用社";
        } else if ("4076".equals(acctBankCode)) {
            return "深圳农村商业银行";
        } else if ("4052".equals(acctBankCode)) {
            return "宁波鄞州农村商业银行";
        } else if ("4764".equals(acctBankCode)) {
            return "浙江省农村信用社联合社";
        } else if ("4217".equals(acctBankCode)) {
            return "江苏省农村信用社联合社";
        } else if ("4072".equals(acctBankCode)) {
            return "江苏紫金农村商业银行股份有限公司";
        } else if ("4769".equals(acctBankCode)) {
            return "北京中关村银行股份有限公司";
        } else if ("4778".equals(acctBankCode)) {
            return "星展银行（中国）有限公司";
        } else if ("4766".equals(acctBankCode)) {
            return "枣庄银行股份有限公司";
        } else if ("4758".equals(acctBankCode)) {
            return "海口联合农村商业银行股份有限公司";
        } else if ("4763".equals(acctBankCode)) {
            return "南洋商业银行（中国）有限公司";
        }
        return acctBankCode;
    }

    public void setAcctBankName(String acctBankName) {
        this.acctBankName = acctBankName;
    }

    public Long getAcctBankId() {
        return acctBankId;
    }

    public void setAcctBankId(Long acctBankId) {
        this.acctBankId = acctBankId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getTenantOperatorCode() {
        return tenantOperatorCode;
    }

    public void setTenantOperatorCode(String tenantOperatorCode) {
        this.tenantOperatorCode = tenantOperatorCode;
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    public String getWithdrawType() {
        return withdrawType;
    }

    public void setWithdrawType(String withdrawType) {
        this.withdrawType = withdrawType;
    }

    public String getAcctBankCode() {
        return acctBankCode;
    }

    public void setAcctBankCode(String acctBankCode) {
        this.acctBankCode = acctBankCode;
    }

    public String getAcctBank() {
        return acctBank;
    }

    public void setAcctBank(String acctBank) {
        this.acctBank = acctBank;
    }

    public String getAcctBankAccount() {
        return acctBankAccount;
    }

    public void setAcctBankAccount(String acctBankAccount) {
        this.acctBankAccount = acctBankAccount;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAlipayUserId() {
        return alipayUserId;
    }

    public void setAlipayUserId(String alipayUserId) {
        this.alipayUserId = alipayUserId;
    }

    public String getAlipayUserName() {
        return alipayUserName;
    }

    public void setAlipayUserName(String alipayUserName) {
        this.alipayUserName = alipayUserName;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }
}